odoo.define('lift_theme.UserPanel', function (require) {
"use strict";

    var ajax = require('web.ajax');
    var core = require('web.core');
    var Widget = require('web.Widget');
    var Model = require('web.Model');
    var session = require('web.session');

    $(document).ready(function () {
        var avatar_src = session.url('/web/image', {model:'res.users', field: 'image_small', id: session.uid});
        $("span.tyibs-user-name").text(session.name);
        $("img.tyibs-user-avatar").attr("src", avatar_src);
    });

});
